#include <QCoreApplication>

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    //枚举
    //需要表示的一组数据

//    int red = 0;
//    int green = 1;
//    int blue = 3467;

//    qInfo()<<"Color"<<green;

    enum Color{red,green,blue = 256};
//    Color::red = 10;
    Color mycolor = Color::blue;

    qInfo()<<"Color"<<mycolor;

    return a.exec();
}
